-- msg_instance
-- Create by weism
-- 通知开始副本挂机
return function(lpc)
    local rid = lpc.rid;
    if (ME.room == nil or ME.room.rid ~= rid) then
        cclog("玩家不在此房间中，无法挂机。")
        return;
    end

    -- 设置数据
    local v = { ["rid"] = rid,
                ["curr"] = lpc.combat_info.curr,
                ["combatId"] = lpc.combat_info.id,
                ["data"] = lpc.combat_info.combats, }
    InstanceM.start(v);

    -- 如果是在副本中，需要更新下本地的副本数据
    if ME.room.base.classify == "副本" then
        v.time = lpc.combat_info.time
        v.rarity = lpc.combat_info.rarity
        _G.currInstance = v
    end

    -- TODO: 开始挂机，界面表现
end
